package cn.how2go.data.component;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2019/7/15.
 */
@Component
public class RabbitmqQueue {
    public static final String LOCATION_QUEUE = "location.queue";

    @Bean
    public Queue locationQueue() {
        return new Queue(RabbitmqQueue.LOCATION_QUEUE);
    }
}
